﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Workflow.Application.DTOs.Input;
using Workflow.Application.DTOs.Output;
using Workflow.Application.ErrorCode;

namespace Workflow.Application.IService
{
    public interface IGroupService
    {
        /// <summary>
        /// 获取流程模板分组列表
        /// </summary>
        /// <returns>流程模板分组列表</returns>
        Task<ApiResult<List<WorkflowGroupDto>>> GetGroupsAsync();

        /// <summary>
        /// 添加流程模板分组
        /// </summary>
        /// <param name="input">分组信息</param>
        /// <returns>添加结果</returns>
        Task<ApiResult<long>> AddGroupAsync(AddGroupInput input);
    }
}
